<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/7/28/028
 * Time: 18:25
 */

namespace App\Http\Service\Order;


use App\Http\Service\Basic\BasicService;
use Config;

class OrderService extends BasicService
{

    //构造函数
    function __construct()
    {
        parent::__construct();
    }


    //时长套餐订单
    public function getProOrderList($where)
    {
        //  dd(Config::get('custom.setting.BASE_API_PATH') . Config::get('custom.api.get_re_order_list'), json_encode($where,JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE));
        return $this->curlLogic->callWebServer(Config::get('custom.setting.BASE_API_PATH') . Config::get('custom.api.get_pro_order_list'), json_encode($where, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE), 'post');
    }

    //包量套餐订单
    public function getReOrderList($where)
    {
        //  dd(Config::get('custom.setting.BASE_API_PATH') . Config::get('custom.api.get_re_order_list'), json_encode($where,JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE));
        return $this->curlLogic->callWebServer(Config::get('custom.setting.BASE_API_PATH') . Config::get('custom.api.get_re_order_list'), json_encode($where, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE), 'post');
    }

    //用户钱包流水
    public function getUserWalletList($where)
    {
//          dd(Config::get('custom.setting.BASE_API_PATH') . Config::get('custom.api.get_wallet_orders'), json_encode($where,JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE));
        return $this->curlLogic->callWebServer(Config::get('custom.setting.BASE_API_PATH') . Config::get('custom.api.get_wallet_orders'), json_encode($where, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE), 'post');
    }
}